<#-- Print out an element's full path -->
<#function elementPath element path>
    <#if element.parent??>
    	<#return elementPath(element.parent, (element.name + "/" + path))/>
    <#else>
    	<#return path/>
    </#if>
</#function>

<#-- Print a heading for a w3c document -->
<#macro docHeading doc heading>
	<${heading}>${doc.baseURI?substring(basePath?length + 6)}</${heading}>
</#macro>
